package com.zeta.eduservice.service.impl;

import com.zeta.eduservice.entity.EduClasss;
import com.zeta.eduservice.entity.EduTeacher;
import com.zeta.eduservice.entity.EduTeacherClass;
import com.zeta.eduservice.entity.vo.questionVo;
import com.zeta.eduservice.entity.vo.front.ClassListVo;
import com.zeta.eduservice.mapper.EduClasssMapper;
import com.zeta.eduservice.service.EduClasssService;
import com.zeta.eduservice.service.EduTeacherClassService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 班级 服务实现类
 * </p>
 *
 * @author zeta
 * @since 2020-08-17
 */
@Service
public class EduClasssServiceImpl extends ServiceImpl<EduClasssMapper, EduClasss> implements EduClasssService {

	
	@Override
	public boolean removeById1(Serializable id) {
	    Integer result = baseMapper.deleteById(id);
	    return null != result && result > 0;
	}

	@Override
	public 	List<ClassListVo> getClassByTeacher(String teacherid) {
		List<ClassListVo> classByTeacher = baseMapper.getClassByTeacher(teacherid);
		return classByTeacher;
	}
	@Override
	public ClassListVo getClassByclassid(String id) {
		ClassListVo classByclassid = baseMapper.getClassByclassid(id);
		return classByclassid;
	}
}
